<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class UserPayFull extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('level', function (Blueprint $table) {
            $table->decimal('full_pay', 10, 2)->after('full_tax');
        });
        
        Schema::table('user_pay', function (Blueprint $table) {
            $table->decimal('full', 10, 2)->after('discount');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('level', function (Blueprint $table) {
            $table->dropColumn('full_pay');
        });
        
        Schema::table('user_pay', function (Blueprint $table) {
            $table->dropColumn('full');
        });
    }
}
